package com.atguigu.tingshu.model.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Schema(description = "用户订阅")
@Document
public class UserSubscribe {

    @Schema(description = "id")
    @Id
    private String id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "专辑ID")
    private Long albumId;

    @Schema(description = "创建时间")
    private Date createTime;

}
